#include<stdio.h>
void exchange(int *a,int *b)
{
	int t;
	t=*a;
	*a=*b;
	*b=t;
}

int main()
{
	int x,y;
	scanf("%d %d",&x,&y);
	exchange(&x,&y);
	printf("%d %d",x,y); 
}
